import {defineStore} from 'pinia'
import {ref} from 'vue'

export const useChapterIDStore = defineStore('chapterID',()=>{
    const chapterID = ref('')

    const setChapterID = (newChapterID)=>{
        chapterID.value = newChapterID
    }

    const removeChapterID = ()=>{
        chapterID.value = ''
    }

    return{
        chapterID,setChapterID,removeChapterID
    }
},{
    persist:true
});
